<include file="Index:header" />
<import file="Common.lhgdialog.lhgdialog#min"/>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a href="{:U('Admin/News/index')}" class="btn btn-primary">新闻列表</a>
		<a href="{:U('Admin/News/edit')}" class="btn"><i class="icon-plus"></i>发布新闻</a>
	</div>	
	<br />
	<div class="well">
		<form action="{:U('Admin/News/index')}" class="bs-docs-example form-search">
			<input type="hidden" name="a" value="{$Think.const.ACTION_NAME}"/>
			<input type="hidden" name="m" value="{$Think.const.MODULE_NAME}"/>
			<input type="hidden" name="g" value="{$Think.const.GROUP_NAME}"/>
			<input type="text" name="keyword" class="input-medium search-query" />
			<input type="submit" class="btn" value="Search"/>
		</form>
		<form action="{:U('Admin/News/delete')}" method="post" id="delForm">
		    <table class="table">
				<thead>
					<tr>
						<th><input type="checkbox" id="selectAll" /></th>
						<th>标题</th>
						<th>内容概要</th>
						<th>发布状态</th>
						<th colspan="2" width="10%">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="news" id="new">
					<tr>
						<td><input type="checkbox" name="id[]" value="{$new.id}" /></td>
						<td>{:msubstr($new['title'],0,10)}</td>
						<td>{:msubstr($new['summary'],0,30)}</td>
						<td>
							<a href="#" class="edit"><if condition="$new.publish eq '1'"><i class="icon-ok"></i><else /><i class="icon-minus-sign"></i></if></a>
						</td>
						<td><a href="{:U('Admin/News/edit',array('id'=>$new['id']))}" class="edit"><i class="icon-pencil"></i></a> |
							<a href="#" ctype="drop" acturl="{:U('Admin/News/delete',array('id'=>$new['id']))}" role="button" data-toggle="modal"><i
								class="icon-remove"></i></a> 
						</td>
					</tr>
					</volist>
					<tr>
						<td><input type="button" class="btn" value="删除选中项" id="delBtn" onclick="formsubmit('#delForm')"/></td>
						<td colspan="4"></td>
					</tr>
				</tbody>
			</table>
		</form>

	</div>
	<div class="pagination">{$page}</div>
</div>
<include file="Index:footer" />